Imports System.Windows.Forms

Public Class NewConnection
    Public Property Server() As String
        Get
            Return Me.TextBox1.Text
        End Get
        Set(ByVal value As String)
            Me.TextBox1.Text = value
        End Set
    End Property
    Public Property Port() As String
        Get
            Return Me.TextBox2.Text
        End Get
        Set(ByVal value As String)
            Me.TextBox2.Text = value
        End Set
    End Property

    Public Property Nick() As String
        Get
            Return Me.txtNick.Text
        End Get
        Set(ByVal value As String)
            Me.txtNick.Text = value
        End Set
    End Property

    Public Property Username() As String
        Get
            Return Me.txtUsername.Text
        End Get
        Set(ByVal value As String)
            Me.txtUsername.Text = value
        End Set
    End Property


    Private Sub OK_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK_Button.Click
        Me.DialogResult = System.Windows.Forms.DialogResult.OK
        Me.Close()
    End Sub

    Private Sub Cancel_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Cancel_Button.Click
        Me.DialogResult = System.Windows.Forms.DialogResult.Cancel
        Me.Close()
    End Sub

End Class
